#include "widget.h"
#include "ui_widget.h"
#include <QRadioButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->man->setChecked(true);
    ui->label->setText("man : 你干嘛~");
//    ui->other->setCheckable(false);
    ui->other->setEnabled(false);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_man_clicked()
{
    ui->label->setText("man : 你干嘛~");
}

void Widget::on_woman_clicked()
{
    ui->label->setText("woman : 哎呦~");
}

void Widget::on_other_clicked()
{
    ui->label->setText("鸡~");
}
